package com.bfly.mall.user.dto;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 收货地址表单DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/9/15 20:33
 */
public class AddressFormDTO implements Serializable {

    private static final long serialVersionUID = 4740149841110181335L;

    private int id;
    /**
     * 省份
     */
    private int provinceId;

    /**
     * 市
     */
    private int cityId;

    /**
     * 行政区/镇
     */
    private int districtId;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空!")
    private String address;

    /**
     * 手机号码
     *
     * @author 长沙商脉科技有限公司
     */
    @NotBlank(message = "收件人手机号码不能为空!")
    private String phone;

    /**
     * 收件人
     */
    @NotBlank(message = "收件人姓名不能为空!")
    private String consignee;

    private boolean defaultAddress;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isDefaultAddress() {
        return defaultAddress;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getDistrictId() {
        return districtId;
    }

    public void setDistrictId(int districtId) {
        this.districtId = districtId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public void setDefaultAddress(boolean defaultAddress) {
        this.defaultAddress = defaultAddress;
    }
}
